package org.airlink.persistence.criteria.selections
{
	import flex.persistence.criteria.Expression;	
	import org.airlink.persistence.criteria.ExpressionImpl;
	public class Max extends ExpressionImpl
	{
		private var expression:Expression;
		public function Max( expression:Expression,cls:Class = null) 
		{
			super(cls);
			this.expression = expression;
		}
		
		override public function toString():String{
			var result:String = "";
			result = "max(";
			result += expression.asValue();
			result += ")";			
			return result;
		}
	}
}